//
//  MyCollectionViewCell.m
//  瀑布流
//
//  Created by caiming on 14-11-4.
//  Copyright (c) 2014年 caiming. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell
{
    UIImageView *imageView;
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        imageView=[[UIImageView alloc] init];
        [self.contentView addSubview:imageView];
    }
    return self;
}

-(void)filldata:(PPModel *)mode{
    imageView.frame=CGRectMake(5, 5, self.contentView.bounds.size.width, self.contentView.bounds.size.height);
    imageView.backgroundColor=[UIColor colorWithRed:(arc4random()%9)*0.1 green:(arc4random()%8)*0.1 blue:(arc4random()%8)*0.1 alpha:1];
//    imageView.backgroundColor=[UIColor redColor];
}
@end
